Skip to content

Commit

Permalink
License quicklint-js under GPL-3.0-or-later
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Apr 10, 2020
1 parent 4c01272 commit f7d266f
Show file tree
Hide file tree
Showing 24 changed files with 1,042 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# quicklint-js finds bugs in JavaScript programs.
# Copyright (C) 2020 Matthew Glazar
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

BasedOnStyle: Google

IncludeBlocks: Merge
Expand Down
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# quicklint-js finds bugs in JavaScript programs.
# Copyright (C) 2020 Matthew Glazar
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

cmake_minimum_required(VERSION 3.10)
project(quicklint-js)

Expand Down
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# quicklint-js finds bugs in JavaScript programs.
# Copyright (C) 2020 Matthew Glazar
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

cmake_minimum_required(VERSION 3.10)

add_executable(
Expand Down
16 changes: 16 additions & 0 deletions src/lex.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <algorithm>
#include <cstring>
#include <iterator>
Expand Down
16 changes: 16 additions & 0 deletions src/location.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <algorithm>
#include <quicklint-js/location.h>

Expand Down
16 changes: 16 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <cerrno>
#include <cstdio>
#include <cstring>
Expand Down
16 changes: 16 additions & 0 deletions src/options.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <cassert>
#include <cstdlib>
#include <getopt.h>
Expand Down
16 changes: 16 additions & 0 deletions src/quicklint-js/error.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#ifndef QUICKLINT_JS_ERROR_H
#define QUICKLINT_JS_ERROR_H

Expand Down
16 changes: 16 additions & 0 deletions src/quicklint-js/lex.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#ifndef QUICKLINT_JS_LEX_H
#define QUICKLINT_JS_LEX_H

Expand Down
16 changes: 16 additions & 0 deletions src/quicklint-js/lint.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#ifndef QUICKLINT_JS_LINT_H
#define QUICKLINT_JS_LINT_H

Expand Down
16 changes: 16 additions & 0 deletions src/quicklint-js/location.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#ifndef QUICKLINT_JS_LOCATION_H
#define QUICKLINT_JS_LOCATION_H

Expand Down
16 changes: 16 additions & 0 deletions src/quicklint-js/options.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#ifndef QUICKLINT_JS_OPTIONS_H
#define QUICKLINT_JS_OPTIONS_H

Expand Down
16 changes: 16 additions & 0 deletions src/quicklint-js/parse.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#ifndef QUICKLINT_JS_PARSE_H
#define QUICKLINT_JS_PARSE_H

Expand Down
16 changes: 16 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# quicklint-js finds bugs in JavaScript programs.
# Copyright (C) 2020 Matthew Glazar
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

cmake_minimum_required(VERSION 3.10)

add_executable(
Expand Down
16 changes: 16 additions & 0 deletions test/quicklint-js/error-collector.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#ifndef QUICKLINT_JS_ERROR_COLLECTOR_H
#define QUICKLINT_JS_ERROR_COLLECTOR_H

Expand Down
16 changes: 16 additions & 0 deletions test/test-lex.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <doctest/doctest.h>
#include <initializer_list>
#include <iostream>
Expand Down
16 changes: 16 additions & 0 deletions test/test-lint.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <doctest/doctest.h>
#include <quicklint-js/error-collector.h>
#include <quicklint-js/lex.h>
Expand Down
16 changes: 16 additions & 0 deletions test/test-location.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <doctest/doctest.h>
#include <quicklint-js/location.h>

Expand Down
16 changes: 16 additions & 0 deletions test/test-options.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <doctest/doctest.h>
#include <initializer_list>
#include <iostream>
Expand Down
16 changes: 16 additions & 0 deletions test/test-parse.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// quicklint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew Glazar
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <doctest/doctest.h>
#include <quicklint-js/error-collector.h>
#include <quicklint-js/error.h>
Expand Down
Loading

0 comments on commit f7d266f

Please sign in to comment.